package com.df.ez_game.server.logic.status_sync;

import com.df.ez_game.EZGameCtx;
import com.df.ez_game.server.MsgFilterAdapter;
import com.df.ez_game.server.logic.status_sync.controllers.SyncController;

public class SyncMsgFilter extends MsgFilterAdapter {
    @Override
    public void oneBefore(EZGameCtx ctx) {
        Long loginId = ctx.getLoginId();
        if(loginId!=null){
            ctx.setAttr(SyncController.playerAttr,SyncController.users.get(loginId));
        }
    }
}
